import request from '@/utils/request'

const $httpRequest = window.$httpRequest || request

const http = (config) => {
    if (!config.baseURL) config.baseURL = import.meta.env.VITE_APP_BASE_API
    return $httpRequest(config)
}

export default http